package com.sdu.shanyiapi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@ServletComponentScan
@ComponentScan("com.sdu.*")
@MapperScan("com.sdu.shanyiapi.db.dao")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class ShanyiApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShanyiApiApplication.class, args);
    }

}
